﻿package org.dicker.util;

public class GlobleUtil {

	/**
	 * 将异常对象转成字符串类型数据并返回
	 * @param e
	 * @return
	 */
	public static String exceptionConvertToString(Exception e){
		String sOut=e.toString()+"\n";
		StackTraceElement[] trace = e.getStackTrace();
        for (StackTraceElement s : trace) {
            sOut += "\tat " + s + "\r\n";
        }
        return sOut;
	}
	
}
